package vn.edu.hcmuns.selab.arm.ui.utility;

import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
import org.eclipse.jface.dialogs.ErrorDialog;
import org.eclipse.swt.widgets.Shell;

public class MessageUtil {

    public MessageUtil() {
        super();
    }

    public static void reportError(String message, String title, Shell shell) {
        ErrorDialog.openError(shell, "Error",
                title, new Status(IStatus.ERROR,
                        "com.example.helloworld", IStatus.OK, message,
                        null));
    }
}
